﻿using XUCore.Win32.Test;

//登录方式：1、实名登录，2、申报密码登录
var loginMode = 2;

Withhold.StartProcess();
//Withhold.CloseProcess();

var loginPanel = Withhold.GetLoginViewer();

//登录UI tab（切换到申报密码登录）
Withhold.SwitchLogin(loginPanel, 1);
Thread.Sleep(500);
Withhold.SwitchLogin(loginPanel, loginMode);
Thread.Sleep(500);

switch (loginMode)
{
    case 1:
        Withhold.PasswordLogin(loginPanel, "我是身份证件号码/手机号码", "我是密码");
        break;
    case 2:
        Withhold.DeclarePasswordLogin(loginPanel, "xxxx有限公司", "123456");
        break;
}
